﻿using System;
using System.Collections.Generic;
using System.Collections.ObjectModel;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Media;

namespace ProgramWindow.ViewModel
{
    public class ProgramViewModel:Notify
    {
        ObservableCollection<string> _Types = new ObservableCollection<string>();
        public ObservableCollection<string> Types { get => _Types; set { _Types = value; RaisePropertyChanged("Types"); } }
        string _Type = "";
        public string Type { get => _Type; set { _Type = value; RaisePropertyChanged("Type"); } }
        string _Mcu = "";
        public string Mcu { get => _Mcu; set { _Mcu = value; RaisePropertyChanged("Mcu"); } }
        string _Ldrom = "";
        public string Ldrom { get => _Ldrom; set { _Ldrom = value; RaisePropertyChanged("Ldrom"); } }
        string _Aprom = "";
        public string Aprom { get => _Aprom; set { _Aprom = value; RaisePropertyChanged("Aprom"); } }
        string _State = "等待";
        /// <summary>
        /// 提示状态
        /// </summary>
        public string State
        {
            get { return _State; }
            set { _State = value; RaisePropertyChanged("State"); }
        }

        SolidColorBrush _StateColor = Brushes.Gold;
        /// <summary>
        /// 状态颜色
        /// </summary>
        public SolidColorBrush StateColor
        {
            get { return _StateColor; }
            set { _StateColor = value; RaisePropertyChanged("StateColor"); }
        }
    }
}
